﻿/*----------------------------------------------------------------
//  <copyright file="ModuleFunctionBase.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2023-07-08 10:23</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Authorization.Entities
{
    #region "模块功能信息基类"
    /// <summary>
    /// 模块功能信息基类
    /// </summary>
    [EventEntityIgnore]
    [ValueGenerate(ValueGenerateRule.Never, ValueGenerateMode.Snowflake)]
    public abstract class ModuleFunctionBase<TModuleKey> : EntityBase<long>, ICreatedTime
    {
        #region "属性"
        #region "获取或设置 模块编号"
        /// <summary>
        /// 获取或设置 模块编号
        /// </summary>
        [Column("ModuleId")]
        [Required]
        [DisplayName("模块编号")]
        public TModuleKey ModuleId { get; set; }
        #endregion
        #region "获取或设置 功能编号"
        /// <summary>
        /// 获取或设置 功能编号
        /// </summary>
        [Column("FunctionId")]
        [DisplayName("功能编号")]
        public long FunctionId { get; set; }
        #endregion

        #region "获取或设置 创建时间 ICreatedTime、ICreationAudited  可装载接口，在数据创建时可自动设置当前时间"
        /// <summary>
        /// 获取或设置 创建时间
        /// </summary>
        [Column("CreatedTime")]
        [DisplayName("创建时间")]
        public DateTime CreatedTime { get; set; }
        #endregion

        #endregion

    }
    #endregion

}
